<%--
  Created by IntelliJ IDEA.
  User: liyongchao
  Date: 2020/9/12
  Time: 14:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>锤子商城后台管理界面</title>
    <link rel="stylesheet" href="/static/layui/css/layui.css">
</head>

<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">锤子商城后台界面</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item"><a href="">控制台</a></li>
            <li class="layui-nav-item"><a href="">商品管理</a></li>
            <li class="layui-nav-item"><a href="">用户</a></li>
            <li class="layui-nav-item">
                <a href="javascript:;">其它系统</a>
                <dl class="layui-nav-child">
                    <dd><a href="">邮件管理</a></dd>
                    <dd><a href="">消息管理</a></dd>
                    <dd><a href="">授权管理</a></dd>
                </dl>
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="/static/image/3.jpg" class="layui-nav-img">
                    ${sys_user.uname}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="">基本资料</a></dd>
                    <dd><a href="">安全设置</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="/admin/remove">下线</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">商品管理模块</a>
                    <dl class="layui-nav-child">
                        <dd><a class="loadUrl" href="/admin/admin/goods">查看所有商品</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">用户管理模块</a>
                    <dl class="layui-nav-child">
                        <dd><a class="loadUrl" href="/admin/admin/user">查看所有用户</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item"><a class="loadUrl" href="/admin/admin/go">查看购物车商品</a></li>
                <li class="layui-nav-item"><a class="loadUrl" href="/admin/admin/address">查看用户收货地址</a></li>
            </ul>
        </div>
    </div>

    <div class="layui-body">

        <div style="padding: 15px;" id="content"><img style="width: 1200px;height: 700px" src="/static/image/chuzi.jpg"></div>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
    </div>
</div>
<script src="/static/layui/layui.js"></script>
<script src="/static/js/jquery-3.4.1.min.js"></script>
<script>
    //JavaScript代码区域
    layui.use('element', function(){
        var element = layui.element;
    });

    $(function () {
        //alert("jquery");
        $(".loadUrl").each(function(){
            $(this).click(function(){
                $("#content").load($(this).attr("href"));
                return false;
            });
        });
    })
</script>
</body>
</html>